package com.py.credit.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.py.credit.entity.Column;
import com.py.credit.entity.Table;
import com.py.credit.service.DataEntryService;

/**
 * 数据录入controller
 * 
 * @author jicm
 *
 */
@Controller
@RequestMapping(value = "/dataEntry")
public class DataEntryController {

	@Autowired(required=false)
	private DataEntryService dataEntryService;

	@RequestMapping(value = "/getTableList.json")
	@Deprecated
	public List<Table> getTableList(String code) {
		return dataEntryService.getTableList(code);

	}

	@RequestMapping(value = "/getColunmList.json")
	@Deprecated
	public List<Column> getColunmList(int tableId) {
		return dataEntryService.getColunmList(tableId);

	}
}
